package com.summerbird.mallchat.common.common.handler;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyThreadGroup extends ThreadGroup{

    public static final MyThreadGroup instance = new MyThreadGroup("log");

    public MyThreadGroup(String name) {
        super(name);
    }

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        super.uncaughtException(t, e);
        log.error("Exception in thread {} ", t.getName(), e);
    }
}
